home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / dmake38e.zip / README / MSDOS < prev    next >
Text File  |  1992-01-25  |  6KB  |  136 lines

  1. Notes on the MSDOS implementation of dmake.
  2.  
  3. Bootstrapping the binary:
  4. -------------------------
  5.    A make.bat file is provided to bootstrap the binary.  The file contains
  6.    several targets for bootstrapping.  Invoking the batch file with no
  7.    arguments lists the possibilities shown below.
  8.  
  9.       INDEX:  You must specify one of:
  10.      tcc      - Turbo C 2.0 compile.
  11.      tccswp   - Turbo C 2.0 compile of swapping dmake.
  12.      bcc      - Borland C++ 2.0 compile.
  13.      bccswp   - Borland C++ 2.0 compile of swapping dmake.
  14.      msc40    - Microsoft C 4.0 compile.
  15.      msc50    - Microsoft C 5.0 compile.
  16.      msc51    - Microsoft C 5.1 compile.
  17.      msc60    - Microsoft C 6.0 compile.
  18.      msc40swp - Microsoft C 4.0, MASM 5.1 compile of swapping dmake.
  19.      msc50swp - Microsoft C 5.0, MASM 5.1 compile of swapping dmake.
  20.      msc51swp - Microsoft C 5.1, MASM 5.1 compile of swapping dmake.
  21.      msc60swp - Microsoft C 6.0, MASM 5.1 compile of swapping dmake.
  22.      ztc      - Zortech C++ 2.1 compile.
  23.      ztcswp   - Zortech C++ 2.1 compile of swapping dmake.
  24.  
  25.    Based on the compiler you have installed and whether or not you
  26.    want the swapping version of dmake, you should select the appropriate
  27.    target and issue 'make.bat target'.
  28.  
  29.    The batch file runs a second batch script that comes with the distribution
  30.    which compiles the sources using the appropriate compiler and flags.  The
  31.    MSC Versions of the batch files should not require any further user
  32.    intervention during the compile.  The Turbo-C version, as a final step,
  33.    invokes tlink with two response files.  The second of these response files,
  34.    named in msdos/tccdos/mk*.bat, contains absolute path names to Turbo-C
  35.    libraries.  You may need to edit these before getting a successful binary
  36.    linked.
  37.  
  38.    By default the batch files make an executable that will run on an 8088
  39.    cpu and up.  You can change that by making the initial version and then
  40.    editing the config.mk files found in either msdos/tccdos or msdos/mscdos
  41.    (depending on the compiler you use), and selecting a diferrent cpu type by
  42.    supplying the appropriate compiler flags.  You then need to remake dmake
  43.    again but this time use dmake itself, see below.
  44.  
  45.    Note that the file msdos/exec.uue is a uuencoded version of a BCC++
  46.    compiled exec.obj (from exec.asm).  If you do not have an assembler
  47.    either microsoft MASM or Borland TASM (or some other), you can uudecode
  48.    this file and put it into the appropriate objects directory.
  49.  
  50.  
  51. Using dmake to Make itself:
  52. ---------------------------
  53.    If you use dmake to make itself you must first set a number of makefile
  54.    control variables, either through the environment or on the command line.
  55.  
  56.    The following variables must be set:
  57.  
  58.     OS           - defines operating system (must be set)
  59.     OSRELEASE      - particular version of it.
  60.     OSENVIRNOMENT  - more customization
  61.  
  62.    These three variables should be defined in your environment.  Valid values
  63.    for them are listed in the readme/options file.  For example, if you
  64.    are using MSDOS, with Turbo-C then the valid settings are:
  65.  
  66.     set OS=msdos
  67.     set OSRELEASE=tccdos
  68.     set OSENVIRONMENT=
  69.  
  70.    dmake searches for an initial startup file, you should set the environment
  71.    variable MAKESTARTUP to contain the full path to the startup file, eg:
  72.  
  73.     set MAKESTARTUP=d:\usr\lib\startup.mk
  74.  
  75.    The dmake makefile has several variables that can be user specified and
  76.    default to reasonable values if not set.
  77.  
  78.     MODEL   - defines the model to compile, valid values are
  79.           {s,c,m, or l}, defaults to 'l' (ie. large) model
  80.           if unspecified.
  81.  
  82.     MSC_VER - defines the version of Microsoft C in use, should be set to
  83.           one of 4.0, 5.0, 5.1 or 6.0; defaults to 6.0.
  84.  
  85.     SWAP    - If set to 'y', compile the dmake swapping version of
  86.           spawnvpe.  This has the effect of turning on swapping of the
  87.           executable to disk if the MSDOS version is made.
  88.  
  89.     DEBUG   - If set to '1' then make the debugging version of dmake, this
  90.           will also set MODEL to 'l'.
  91.  
  92.    To set the above variables you must specify them on the dmake command line
  93.    or insert them into the makefile.mk definition.
  94.  
  95.  
  96. Memory Requirements and Swapping:
  97. ---------------------------------
  98.    The swapping code currently only swaps to DISK, I have left hooks
  99.    in to accomodate XMS and EMS, I have some code that performs the
  100.    necessary XMS/EMS accesses but have not incorporated it in yet.
  101.    It appears that a ramdisk seems to work just fine.  If anyone
  102.    wishes to fill in the hooks please do and I'll be happy to include
  103.    them in future distributions.
  104.  
  105.  
  106. ^C and stopping a make:
  107. -----------------------
  108.    Thanks to the efforts of Len Reed, appears to now work.  I have been unable
  109.    to hang my machine if it's swapped out and I hit ^C a couple thousand times.
  110.  
  111.  
  112. Other notes:
  113. ------------
  114.    dmake does not care if you are running command.com or some other command
  115.    interpretter, you must however specify the proper values of the environment
  116.    variables SHELL, SHELLFLAGS, GROUPSHELL, and GROUPFLAGS in order for things
  117.    to work correctly.  Read the man page FIRST, if you still have trouble
  118.    then send email.
  119.  
  120.    Group recipes under DOS that use command.com as the command interpretter
  121.    require you to set the GROUPSUFFIX macro.
  122.  
  123.    As shipped the startup.mk files for the DOS version try to figure out what
  124.    command interpretter you are using and set things up appropriately.
  125.    Two command interpretters are supported in the shipped startup.mk file,
  126.    command.com, and the MKS Korn shell.
  127.  
  128.    dmake does not contain any builtin commands.  It gets all commands it
  129.    executes from an external file system.  It is therefore most useful if it
  130.    is used in conjunction with an environment similar to that provided by
  131.    the MKS Tool Kit, or equivalent.
  132.  
  133.    dmake now supports the MKS argument passing conventions.  The facility is
  134.    enabled by setting .MKSARGS:=1.  It is set by default in the startup.mk file
  135.    if an MKS Korn shell is detected as being the active command interpretter.
  136.